/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package IA;

/**
 *
 * @author Rob
 * Edited: 3-29-11 Jeremy
 */
public class OrderItem extends ClockObserver {
    
    private String Name;
    private double Price;
    private boolean _Delivered = false; 
    private int PrepTime;
    private int TableID;
    
    public OrderItem(String name, double price, int PrepTime, int TableID) {
        Name = name; Price = price; this.PrepTime = PrepTime;
        this.TableID = TableID;
        SystemClock.getInstance().AddObserver(this); 
    }
       
    public void Delivered() {
        _Delivered = true;
    }
    
    public boolean isDelivered() {
        return _Delivered;
    }
    
    public String getName() {return Name;}
    public double getPrice() {return Price;}
    public int getPrepTime() {return PrepTime;}
    public int getTableID() {return TableID;}
    public long getDeliveryTime() {return super.NumTicks;}
    
}
